package com.xhai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhai.domain.entity.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author xhai
 * @since 2025-05-24
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * 根据岗位id获取角色
     *
     * @param postIds
     * @return
     */
    List<SysRole> selectRoleByPostIds(@Param("postIds") Set<Long> postIds);
}
